package com.jie.myvhr.mapper;

import com.jie.myvhr.bean.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jie
 * @date 2019/6/30 -15:57
 */
public interface DepartmentMapper {
    /**
     * 根据父级部门id查询部门
     */
    List<Department> getDepByPid(Long pid);

    /**
     * 获取所有部门
     */
    List<Department> getAllDeps();

    /**
     * 添加部门
     */
    void addDep(@Param("dep") Department department);
    /**
     * 删除部门
     */
    void deleteDep(@Param("dep") Department department);
}
